package com.crayon2f.test;

import cn.hutool.core.util.RandomUtil;
import com.google.common.collect.Lists;
import org.apache.commons.collections4.CollectionUtils;
import org.junit.Test;

import java.util.List;
import java.util.Random;
import java.util.stream.Stream;

/**
 * Created by feifan.gou@gmail.com on 2024/7/2 15:37.
 */
public class TEST2024_07 {

    @Test
    public void testCollectionAnyContains() {


        List<String> list = Lists.newArrayList("1", "2");
        System.out.println(CollectionUtils.containsAny(list, "a", "5", "1"));
        System.out.println(CollectionUtils.containsAny(list, "a", "2", "1"));
        System.out.println(CollectionUtils.containsAny(list, "a", "5", "7"));
    }

    @Test
    public void testAnyEquals() {

        for (int i = 0; i < 20; i++) {
            System.out.println(RandomUtil.randomInt(6, 12));
        }
    }


}
